package com.wh.wisdomsite.xbox.common;

import java.lang.reflect.Method;

/***
 * 服务方法处理器
 * @Package com.wh.wisdomsite.xbox.common
 * @author 谢泽鹏
 * @date 2016年11月07日 下午15:10
 * @Copyright 个人版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2016
 * @version V1.0
 */
public class ServiceMethodHandler {


    /**
     * 方法所在的对象
     */
    private Object handler;

    /**
     * 方法描述
     */
    private Method method;

    /**
     * 方法对应的参数
     */
    private Class<? extends XboxRequest> requestType;

    /**
     * 方法定义
     */
    private ServiceMethodDefinition serviceMethodDefinition;

    private boolean xboxRequestImplType;

    public boolean isHandlerMethodWithParameter() {
        return this.requestType != null;
    }

    public Class<? extends XboxRequest> getRequestType() {
        return requestType;
    }

    public void setRequestType(Class<? extends XboxRequest> requestType) {
        this.requestType = requestType;
    }

    public ServiceMethodDefinition getServiceMethodDefinition() {
        return serviceMethodDefinition;
    }

    public void setServiceMethodDefinition(ServiceMethodDefinition serviceMethodDefinition) {
        this.serviceMethodDefinition = serviceMethodDefinition;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Object getHandler() {
        return handler;
    }

    public void setHandler(Object handler) {
        this.handler = handler;
    }

    public boolean isXboxRequestImplType() {
        return xboxRequestImplType;
    }

    public void setXboxRequestImplType(boolean xboxRequestImplType) {
        this.xboxRequestImplType = xboxRequestImplType;
    }

}
